package com.wy.config;

import com.alibaba.dubbo.config.annotation.Reference;
import com.baseBean.User;
import com.dubbo.ExcelInterface.UserService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class hot implements ApplicationRunner {
    @Reference
    private UserService userService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        User user = userService.getUser(10);
        System.out.println(user);
    }
}
